package com.drmswt.cnCaptcha.server.mapper;

import com.drmswt.cnCaptcha.server.model.Person;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * Created by wangcan2 on 2016/3/23.
 */
public interface PersonMapper
{
    @Select("SELECT * FROM PERSON WHERE id = #{id}")
    Person findById(@Param("id") int id);

    @Insert("INSERT INTO PERSON (name,sex,delFlag) values (#{name},#{sex},#{delFlag})")
    boolean add(Person person);
}
